import request from '@/utils/request'

export function pageList(query) {
  return request({
    url: '/exam/questionLibrary/pageList',
    method: 'get',
    params: query
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/exam/questionLibrary/addOrUpdate',
    method: 'post',
    data
  })
}

export function deleteQuestion(id) {
  return request({
    url: '/exam/questionLibrary/' + id,
    method: 'delete'
  })
}

export function getQuestionTags() {
  return request({
    url: '/exam/questionLibrary/tagList',
    method: 'get'
  })
}
